package com.beijiteshop.shop.ui.address

import com.beijiteshop.libcommon.network.RetrofitClient
import com.beijiteshop.shop.ui.address.repo.AddressRepo
import com.beijiteshop.shop.ui.address.repo.AddressService
import com.beijiteshop.shop.ui.address.vm.AddressVM
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/9 19:42
 * @Description
 */

val addressModule = module {

    single {
        get<RetrofitClient>().getService(AddressService::class.java)
    }

    single {
        AddressRepo(get())
    }

    viewModel{
        AddressVM(get())
    }
}